SftTree/OCX 7.0

VirtualItem.SetCellPictureImage Method

Softel vdm, Inc.

Defines the graphic displayed as the item's cell graphic.

Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Cell.Image.SetImageList instead

Syntax       

VB.NET

object.SetCellPictureImage(ByVal ColIndex As Short, ByVal ImgListObj As Object, ByVal ImgIndex As Short)

VB

object.SetCellPictureImage(ByVal ColIndex As Integer, ByVal ImgListObj As Object, ByVal ImgIndex As Integer)

C#.NET

void object.SetCellPictureImage(short ColIndex, object ImgListObj, short ImgIndex);

VC++

HRESULT object->SetCellPictureImage(short ColIndex, LPDISPATCH ImgListObj, short ImgIndex);

C

HRESULT object->raw_SetCellPictureImage(short ColIndex, LPDISPATCH ImgListObj, short ImgIndex);

Delphi

procedure object.SetCellPictureImage(ColIndex : Smallint, ImgListObj : IDispatch, ImgIndex : Smallint);

object

A VirtualItem object.

ColIndex

The zero-based column number.  The combination of ColIndex and the VirtualItem event's RowIndex parameter describes an individual cell.

ImgListObj

An ImageList control supporting the IImageList interface.  This ImageList object contains the graphics used to display the cell's graphic component.  May be set to the value Nothing (NULL), which removes the graphic from the cell.

ImgIndex

The one-based index of the image in the ImageList control to be used as the cell's graphic component.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Cell.Image.SetImageList instead

The SetCellPictureImage method defines the graphic displayed as the item's cell graphic.

The VirtualItem.SetCellPictureImage property is used while handling a VirtualItem event to define the graphic displayed as the item's cell graphic.  The item is described by the VirtualItem event's RowIndex parameter.

See Also  VirtualItem Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com